import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Welcome extends HttpServlet {
    public void doPost(HttpServletRequest request,
                       HttpServletResponse response)
    throws ServletException, IOException {

        /**
         *  Indicate the content type (for example, text/html), 
         *  being returned by the response
         */
        response.setContentType("text/plain");

        /**
         *  Retrieve an output stream to use to send data 
         *  to the client 
         */
        PrintWriter out = response.getWriter();

        /**
         *  Write the response
         */
        out.println("Welcome to iCarnegie!");
    }
}

